package com.nq.activaity.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 抽奖设置表
 * @Author: jeecg-boot
 * @Date:   2024-11-05
 * @Version: V1.0
 */
@Data
@TableName("st_lottery_settings")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class StLotterySettings implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    private String id;
	/**创建人*/
    private String createBy;
	/**创建日期*/
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
	/**类型*/
	@Excel(name = "类型", width = 15)
    private String type;
	/**次数*/
	@Excel(name = "次数", width = 15)
    private Integer count;
	/**开始时间*/
	@Excel(name = "开始时间", width = 15, format = "yyyy-MM-dd")
    private Date beginTime;
	/**结束时间*/
	@Excel(name = "结束时间", width = 15, format = "yyyy-MM-dd")
    private Date endTime;
	/**消耗积分数量*/
	@Excel(name = "消耗积分数量", width = 15)
    private Integer integral;

	/**抽奖规则*/
	@Excel(name = "抽奖规则", width = 15)
    private String lotteryRules;

	/**状态 0 有效 1 无效*/
	@Excel(name = "状态 0 有效 1 无效", width = 15)
    private Integer status;
}
